﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="LotteryMgtSystem._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .style1
        {
            width: 300px;
        }
        .style2
        {
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table cellpadding="0" cellspacing="0" class="style1">
            <tr>
                <td class="style2">
                    Company</td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Lottery_date</td>
                <td>
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    End_date</td>
                <td>
                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Total_tickets</td>
                <td>
                    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Initial_amt</td>
                <td>
                    <asp:TextBox ID="TextBox5" runat="server" 
                        style="z-index: 1; left: 123px; top: 103px; position: absolute"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    Winner_id</td>
                <td>
                    <asp:TextBox ID="TextBox6" runat="server" 
                        style="z-index: 1; left: 123px; top: 122px; position: absolute"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" colspan="2">
                    <asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click1"
                        />
                </td>
            </tr>
        </table>
    
    </div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" onrowcommand="GridView1_RowCommand1" 
        >
        <Columns>
            <asp:BoundField DataField="company" HeaderText="Company" />
            <asp:BoundField DataField="lottery_date" HeaderText="Lottery_date" />
            <asp:BoundField DataField="end_date" HeaderText="End_date" />
            <asp:BoundField DataField="total_tickets" HeaderText="Total_tickets" />
            <asp:BoundField DataField="winner_id" HeaderText="Winner_id" />
            <asp:TemplateField HeaderText="IsDeleted">
                <ItemTemplate>
                    <asp:Button ID="Button2" runat="server" 
                        CommandArgument='<%# Eval("lottery_id") %>' CommandName="Delete" 
                        Text="Delete" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="initial_amt" HeaderText="Initial_amt" />
        </Columns>
    </asp:GridView>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    </form>
</body>
</html>
